import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { APP_CONFIG } from './environments/environment';

import { SciChartSurface } from 'scichart/Charting/Visuals/SciChartSurface';

//import { SciChartDefaults } from "scichart/Charting/Visuals/SciChartDefaults";
//SciChartDefaults.performanceWarnings = false

SciChartSurface.configure({
  dataUrl: 'assets/file/scichart2d.data',
  wasmUrl: 'assets/file/scichart2d.wasm'
})
SciChartSurface.setRuntimeLicenseKey('iJq7UCSQUGZWDerluAQUwJszh7txOOjXkxFgRjWxSM1H+CHreQGIHs6TElJ9t3/nvcVIUPUTD/1YfY8nzUlx8VOquhmSZA02/b5KYlp3mUZidQYSkq1Pnprmb+g2X98cBas7arLBRZ9nal2HueXkXQ6MtmTSeGmBwlq7dF1zSP1qP/e3SWd/4tSVvRnYuviaPVkTyrn284Hqp/qDigJy5gxp+xEzgh3jF3F4RAGEw323kdvq/quoBQRNgYcIPjfOfXM8i1o0ibWqXtklCqGjl4WMUYXZaJ7Q/yBCdHotA+KmzEQBeqKRIMzFMbo27hCsSklpMLEgAx/tymH4/FQvJIo67mwPoEP4/qzBOLV6a7BoUyke/gSXDgzciPVYWF+XrreYIXG6bDLG9c81oxji4x24uoEo9G3UbHXFmjOKV/ASnwJTmi/lwRuRDHY+neiAmUYDHM9eVUTbU3BW+ljUf+o3Qz4+tAv5ywCnf6H3Sp49VVfRRe/WH7Qc74Z0X4Bwc9HZSx5qXYp46WC3y3gYA18/2tEP3gjdgCol1E5ojKo16ceUmz+pEQt1sjllpWP+kWiZGMQHipFjWy0e70vy6J/0FnIh1LMOZy3KJ5gAUuV1cuMq9llZvToDfy+I4Mt+djSkI1hSPEaHHEAK13E4DY3gFYToCZK5Hhn6imSVJWc91CppJ0BTdzb5rFs2IvHYULZtLLygnRBsssO7MjyRx8bp54ppe61M0Ff5HrsHV8aY3iQqbwWHfcLFcjBTHYyH7+VwGxxnGa7a87JwvITXAB88miV4L9TpeC8rKputmuX7UWl5UG58Fn5QRHKh3LKyYWomYHyAeRlLwLxMnlo/GwLf5FbGXMYJmLrakYiZ9RvDNhf9GLK6vgyOaEtzPqzeOfLSynORPsCr9695MhQape9M1KheHRuCZfz3bDb81vkMzNDURzwDun1p')


if (APP_CONFIG.production) {
  enableProdMode();
}

platformBrowserDynamic()
  .bootstrapModule(AppModule, {
    preserveWhitespaces: false
  })
  .catch(err => console.error(err));
